//
//  VersionTool.m
//  myfish
//
//  Created by EmberWei on 2018/6/6.
//  Copyright © 2018年 EmberWei. All rights reserved.
//

#import "VersionTool.h"

@implementation VersionTool

+(NSInteger)versionCode
{
    NSString *localString = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
    NSInteger localVersion = [localString integerValue];
    return localVersion;
}

+(NSString*)displayVersion
{
    NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    return [NSString stringWithFormat:@"V%@",version];
}
@end
